
set(LIBRARIES rtabmap_core)

IF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND))
    ADD_DEFINITIONS("-DWITH_QT")
    set(LIBRARIES ${LIBRARIES} rtabmap_gui)
ENDIF(WITH_QT AND (QT4_FOUND OR Qt5_FOUND OR Qt6_FOUND))

ADD_EXECUTABLE(report main.cpp)
  
TARGET_LINK_LIBRARIES(report ${LIBRARIES})

SET_TARGET_PROPERTIES( report 
    PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-report)
    
INSTALL(TARGETS report
	RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT runtime
	BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime)
